package org.springframework.core.io;

import org.springframework.util.ClassUtils;

public class DefaultResourceLoader implements ResourceLoader {

    private ClassLoader classLoader;
    
    public DefaultResourceLoader() {
        classLoader = ClassUtils.getDefaultClassLoader();
    }
    
    @Override
    public ClassLoader getClassLoader() {
        return this.classLoader != null ? classLoader : ClassUtils.getDefaultClassLoader();
    }

}
